/*Replication file for Lyons Utych 2021
You're Not From Here
Political Behavior
Study 3*/

*use study3nosuburb.dta

*Figure 5

reg hire tcoloc tcopart toutpart
est sto Hire
reg rank tcoloc tcopart   toutpart
est sto Rank

coefplot Hire Rank, drop(_cons) rename(tcoloc = Co-Located tcopart = Co-Partisan toutpart = Out-Partisan) xline(0) ti("Figure 5. Hire and Ranking of Applicant") scheme(sj)

*Figure 6
reg comp_sc tcoloc tcopart toutpart
est sto Competence
reg pers_sc tcoloc tcopart toutpart
est sto Personal

coefplot Competence Personal, drop(_cons) rename(tcoloc = Co-Located tcopart = Co-Partisan toutpart = Out-Partisan) xline(0) ti("Figure 6. Trait Evaluations") scheme(sj)

*Appendix Analyses

*Table B7
reg hire tcoloc tcopart toutpart
reg rank tcoloc tcopart   toutpart
reg comp_sc tcoloc tcopart toutpart
reg pers_sc tcoloc tcopart toutpart

*Table B8
reg hire tcoloc tcopart toutpart if urban==1
reg rank tcoloc tcopart   toutpart if urban==1
reg comp_sc tcoloc tcopart toutpart if urban==1
reg pers_sc tcoloc tcopart toutpart if urban==1

*Table B9
reg hire tcoloc tcopart toutpart if urban==3
reg rank tcoloc tcopart   toutpart if urban==3
reg comp_sc tcoloc tcopart toutpart if urban==3
reg pers_sc tcoloc tcopart toutpart if urban==3
